<?php
use doumiaoduo\layer\LayerAsset;
?>
<?=$form?>
<?php
LayerAsset::register($this);
$js=<<<JS
 var layout='<div class="yx-warn yx-radius50"><h1>!</h1></div>';
            layer.config({
                extend: ['/skin/customskin/style.css'],
            });
   $(document).on('click','#dosubmit',function(e){
         e.preventDefault();
         layer.confirm(layout+'<p>确定转到此班级？</p>', {
                title: '转班',
                area: ['440px', '270px'],
                skin: 'layui-confirm-customskin',
                shift:1,
                id:'layer-iframe',
                btn: ['确定','取消'],
                yes: function(index, layero){
                  $('#classmanageturn-form').submit();
                  layer.close(index);
                }
          });
   });
JS;
\Yii::$app->view->registerJs($js);
?>